package com.ocom.nettyxf.vo;

import lombok.Data;

/**
 * @Description: TODO
 * @Author: 朱晖
 * @Date: 2022/10/24
 **/
@Data
public class BalanceQueryVo {
	//响应结果
	String code = "0000" ;

	//类型 1-刷卡，4-刷脸，5-付款码，7-ocom离线码
	String type = "00";

	public void setName(String name) {
		this.name = name;
	}

	//姓名  不足20个字节，后面补0
	String name = "0000000000000000000000000000000000000000";

	//个人密码
	String password = "00000000";
	//卡类型
	String cardType = "00";

	//卡有效日期 Yyyymmddhhmmss
	String valid = "00000000000000";

	//个人充值余额
	String balance = "00000000";

	//补贴余额
	String subBalance = "00000000";


	public String getHexStr() throws Exception {
		return code
				+ type
				+ name
				+ password
				+ cardType
				+ valid
				+ balance
				+ subBalance ;
	}
}
